package org.afs.gescol.core.dao.interfaces;

import java.util.List;

import org.afs.gescol.core.model.references.Period;

/**
 * Dao interface for school Period management
 * @autor Kobla GBENYO (kobla.gbenyo@gmail.com)
 */
public interface PeriodDao {

    /**
     * Get Period model by its id.
     * @param id the id of the Period to get
     * @return the Period to get
     */
    Period getPeriodById(Long id);

    /**
     * Get a list of Period models by their label.
     * @param label the label of the Period to get
     * @return the list of Period models those label matches with the providing label
     */
    List<Period> getPeriodsByLabel(String label);

}
